package com.dz.lm.service.usersearch;

import com.dz.lm.common.dto.PageDto;
import com.dz.lm.common.exception.ServiceException;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @version 1.8;
 * @author: LDY;
 * @Description;
 * @Date: Created in 2020/3/8 17:16;
 */
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)

public interface UserSearchService {
    int add(String content,int userId) throws ServiceException;

    PageDto query(int page,int rows,int userId) throws ServiceException;

}
